package org.colcon.web.client.ui.panel;

import org.colcon.web.client.Collective_Congress;
import org.colcon.web.client.ui.ClickablePanel;
import org.colcon.web.client.ui.HomePanel;

import com.google.gwt.user.client.ui.Label;

public class LogoPanel extends ClickablePanel
{
	public LogoPanel(Collective_Congress client)
	{
		super(client, "logo", "<img src=\"img/logo.png\">");
	}
	
	public void click()
	{
		getBodyPanel().clear();
		getBodyPanel().add(new Label("Loading..."));
		
		getClient().refreshUser();
		
		getBodyPanel().clear();
		getBodyPanel().add(new HomePanel(getClient()));
	}
}
